#! /bin/sh /usr/share/dpatch/dpatch-run
## 20_test_runner_bad_virtual_method_arg.dpatch by  <proppy@yada>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad unittest++-1.4.0~/src/tests/TestTestRunner.cpp unittest++-1.4.0/src/tests/TestTestRunner.cpp
--- unittest++-1.4.0~/src/tests/TestTestRunner.cpp	2008-10-30 15:27:42.000000000 +0100
+++ unittest++-1.4.0/src/tests/TestTestRunner.cpp	2009-07-10 23:25:53.000000000 +0200
@@ -20,14 +20,14 @@
     {
     }
 
-    virtual void RunImpl(TestResults& testResults_) const
+    virtual void RunImpl() const
     {
         for (int i=0; i < count; ++i)
         {
             if (asserted)
                 ReportAssert("desc", "file", 0);
             else if (!success)
-                testResults_.OnTestFailure(m_details, "message");
+                CurrentTest::Results()->OnTestFailure(m_details, "message");
         }
     }
 
